﻿<html>
	<head>
	<load href="__JS__/menu.js" />
	<load href="__JS__/leftmenubar.js" />
	<load href="__CSS__/header.css" />
	<load href="__CSS__/footer.css" />
	<link  rel="stylesheet" href="__CSS__/collegedetail_style.css" type="text/css"> 
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<load href= "__JS__/jshelper.js" />
		<title>信息管理</title>
			<script type="text/JavaScript">
				function infoedit(no){
					window.location.href="__URL__/infoedit/no/"+no;
				}
				
				function infodelete(no){
					if (confirm("你确定要删除吗")==true)
						postwith('__URL__/infodelete',{no:no});
				}
					window.onload=show;
			</script>
	</head>
	<body>
	<layout name="Auth:header" />
	<div  class="nowposition">
		当前位置：
			<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
			<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
			<a href=""class="nowpositionhref">用户管理</a>
	</div>
	<layout name="Auth:leftmenu" />
	<div class="infodetail">
		<div align="left" style="width:800px; position:relative; left:210px;" >
				<a href="__URL__/infoadd" style="color:#3300CC; text-decoration:none">添加用户</a>
				<a href="__URL__/infoimport" style="color:#3300CC; text-decoration:none">批量添加用户</a>
		</div>
		<div style=" width:850px; position:relative; left:210px;" align="left">
          <form method="get" action="__URL__/infodetail" >
            工号/学号：
      <input type="text" name="no">
            姓名:
            <input type="text" name="name">
            所在院系：
            <select name="dname">
              <option value =></option>
              <volist name='deplist' id='vo'>
                <option value =	{$vo.name}>{$vo.name}</option>
              </volist>
            </select>
            <input name="submit" type="submit" value="查询">
          </form>
	  </div>
	  <div  style="width:68%; position:relative; left:210px;">
		<table width="100%" h border="0" align="center" cellpadding="0px" cellspacing="0px">
				<thead style="background-color:f0f0f0;">
					<tr style="height:35px;">
						<td>工号</td>
						<td>姓名</td>
						<td>权限</td>
						<td>院系</td>
						<td>操作</td>
					</tr>
				</thead>
				<load href"__PUBLIC__/js/list_show.js">
				<tbody id="tab">
					<volist name='list' id='vo' >
						<tr style="height:35px;">
							<td>{$vo.no}</td> <!--工号-->
							<td>{$vo.name}</td><!--姓名-->
							<td>{$vo.role}</td><!--权限-->
							<td>{$vo.dname}</td><!--院系-->
							<td>
							<if condition="$role eq '院系管理员' and $vo.role eq '校级管理员'">
								权限不够无法操作
								<else/>
									<a name="infoedit" onClick="infoedit('{$vo.no}')" href="#" class="blue">编辑</a>
									<!--<input type="button" name="collegeedit"  onClick="" value="编辑">-->
									<a name="delete_info" onClick="infodelete({$vo.no})" href="#" class="red">删除</a>
									<!--<input name="delete_college" type="reset" onClick="" value="删除">-->
							</if>
							</td>
						</tr>
					</volist>
				</tbody>
	  </table>
	  </div>
		<div class="green-black" style="position:relative; top:15px; left:785px; width:120px; display:inline">{$page}</div>
	</div>
	</body>
</html>